package com.scilvet.reportcomposer.node;

import com.scilvet.reportcomposer.account.Amount;

public class Negation extends UnaryExpression {
	
	public Negation(Node node) {
		super(node);
	}
	
	@Override
	public Amount getValue() {
		return node.getValue().negate();
	}

	@Override
	public String toString() {
		return "(-1 *" + node + ")";
	}
	
	public String printValues() {
		return "(-1 *" + node.printValues() + ")";
	}
}
